package com.xr.system.model.student.pojo;

//import com.xr.common.utils.XrObjectConverter;
import lombok.extern.slf4j.Slf4j;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

@Slf4j
public class demo {

	public static void main(String[] args) {
		// System.out.println(new Date());
		// System.out.println(LocalDateTime.now());
		// LocalDateTime localDateTime =
		// XrObjectConverter.convertLocalDateTimeStringToDate(LocalDateTime.now().toString());
		// System.out.println(localDateTime);
	}

	private static Date convert() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
		Date date = null;
		try {
			date = sdf.parse(LocalDateTime.now().toString());
		}
		catch (Exception e) {
			log.error("解析错误，日期格式不合法！");
			e.printStackTrace();
		}
		System.out.println(date);
		return date;
	}

}
